/**
 * Company : SIANGKLOM.
 * Created By : Chatree Siangklom
 * Created On : Oct 15, 2013  10:16:42 AM 
 * e-Mail : dr_chatree@hotmail.com
 * Mobile Phone : (+66) 087-921-5115
 * Package Name : com.tis.database.services.promis
 * File Name : IPmsPaymentsReceivedServices.java
 * TODO
 */
package com.tis.database.services.promis;

import java.math.BigDecimal;
import java.util.List;

import org.hibernate.HibernateException;

import com.tis.database.entitys.promis.GlPostingDetail;
import com.tis.database.entitys.promis.PmsPaymentsReceived;
import com.tis.database.entitys.promis.PmsPaymentsReceivedPK;

/**
 * @author Chatree Siangklom of Administrator
 * Date =Oct 15, 2013 : 10:16:42 AM 
 * CreateBy=Chatree Siangklom
 * 
 * IPmsPaymentsReceivedServices
 * TODO
 */
public interface IPmsPaymentsReceivedServices {
	
	 PmsPaymentsReceived findById(PmsPaymentsReceivedPK id) throws HibernateException;
	 
	 BigDecimal NextInstanceNo() throws HibernateException, Exception;
	 
	 BigDecimal NextSequence(String name) throws HibernateException, Exception;
	 
	 void saveOrUpdate(List<PmsPaymentsReceived> e) throws HibernateException;
	 
	 void saveOrUpdate(PmsPaymentsReceived e) throws HibernateException;
	 
	 void UpdateBackSapMessage(GlPostingDetail glPostingDetail) throws HibernateException, Exception;
	 
	 List<PmsPaymentsReceived> FindByIs(String status, String syncIsstaging, String syncIssync, int maxResult) throws Exception;
}
